/*
	MIDAS Context Based Routing
	cbr_config.h
	Copyright (c) 2007 Radoslaw Olgierd Schoeneich
	MEAG IT PW
 */

#ifndef cbr_config_h_
#define cbr_config_h_

#include "cbr_compressor.h"

#define HELLO_INTERVAL          10              // 10 s
#define ALLOWED_HELLO_LOSS      3               // packets

#define SCHEDULE_INTERVAL	0.05		// 0.05 s == 50 ms

#define CTX_ROUTE_LIFE		(ALLOWED_HELLO_LOSS * HELLO_INTERVAL)

// how often to check if messages in cache are expired
#define CACHE_PURGE_FREQ	1

#define OUTGOING_MSG_LIFE	60	// seconds
#define INCOMING_MSG_LIFE	120	// seconds

// compression algorithm: 0 - default, 1 - fair
#define HELLO_COMPRESSION	0

#endif	// cbr_config_h_
